﻿Imports extremo

Public Class Evento
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btnNuevo_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnNuevo.Click
        Response.Redirect("~/NuevoEvento.aspx", False)
    End Sub

    Protected Sub btnBuscar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnBuscar.Click
        Dim negocio = New EventoNegocio

        Dim lista = negocio.buscarPorFecha_evento(Me.txtFecha.Text)

        dgvCategorias.DataSource = lista
        dgvCategorias.DataBind()
    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        Response.Redirect("Home.aspx", True)
    End Sub
End Class